-- GENERATED SPELL FOR [Chromatic Drakonid] --


function spell0_14302(pUnit, Event) --@Brood Power: Black,n/a--
pUnit:FullCastSpellOnTarget(22560,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14302', 642, 1)
end

function spell1_14302(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14302', 554, 1)
end

function Sorts_14302(pUnit, Event)
local choix_sorts_14302 = math.random(0, 1)
if choix_sorts_14302 == 0 then
pUnit:RegisterEvent('spell0_14302', 1, 1)
end
if choix_sorts_14302 == 1 then
pUnit:RegisterEvent('spell1_14302', 1, 1)
end
end

function mob14302_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14302', math.random(1500, 3000), 1)
end

function mob14302_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14302_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14302_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14302, 1, 'mob14302_Action')
RegisterUnitEvent(14302, 2, 'mob14302_Leave')
RegisterUnitEvent(14302, 3, 'mob14302_Kill')
RegisterUnitEvent(14302, 4, 'mob14302_Die')
